package com.chinacoal.microservice.fallback;

import com.chinacoal.microservice.CurrencyClient;
import com.chinacoal.microservice.pojo.*;
import com.chinacoal.microservice.util.CodeMsg;
import com.chinacoal.microservice.util.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 通用接口异常回退类
 * @date 2020-11-17 17：55
 */
@Component
public class CurrencyClientFallback implements CurrencyClient {

    /**
     * @Description: 中台登录接口，异常回退
     * @author zhuliang
     * @date 2020/11/17 18:06
     */
    @Override
    public Result getLoginPerson(String token, Currency currency) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 总登录接口
     * @author zhuliang
     * @date 2021/1/25 11:04
     */
    @Override
    public Result<String> adminLogin(Currency currency) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 注销登录
     * @author zhuliang
     * @date 2021/1/14 11:49
     */
    @Override
    public Result logout(String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据对应的父类id查询对应的子类信息（省，市，区，街道）
     * @author zhuliang
     * @date 2020/11/19 9:14
     */
    @Override
    public Result<List<CcmsSmartleasingArea>> getParentIdList(Integer parentid) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 查询楼宇模块所有的下拉框数据
     * @author zhuliang
     * @date 2020/11/30 20:47
     */
    @Override
    public Result<CcmsSmartleasingBasicdata> getAllByBuilding(String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据一级关联id查询二级信息
     * @author zhuliang
     * @date 2020/11/30 20:47
     */
    @Override
    public Result<List<CcmsSmartleasingBasicdata>> getAllByTwo(String id, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据一级编码查询所有二级信息
     * @author zhuliang
     * @date 2020/11/30 21:38
     */
    @Override
    public Result<List<CcmsSmartleasingBasicdata>> getTwoAll(String categoryNumber, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据编码查询所有一级信息
     * @author zhuliang
     * @date 2020/12/1 9:57
     */
    @Override
    public Result<List<CcmsSmartleasingBasicdata>> getOneAll(String categoryNumber, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据流水号查询开票信息
     * @author zhuliang
     * @date 2020/12/9 10:31
     */
    @Override
    public Result<String> getInvoicingBySerialNumber(String SerialNumber) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据订单号查询开票信息
     * @author zhuliang
     * @date 2020/12/9 10:31
     */
    @Override
    public Result<String> byOrderNumber(String orderNumber) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 云丁回调接口
     * @author zhuliang
     * @date 2020/12/23 16:32
     */
    @Override
    public Result getYundingData(YundingCallback yundingCallback) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 绿米消息回调接口
     * @author zhuliang
     * @date 2021/1/8 15:18
     */
    @Override
    public Object getGreenRiceData(GreenRiceCallback greenRiceCallback) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 读取指定目录的xlsx文件，生成房间数据
     * @author zhuliang
     * @date 2021/1/25 16:21
     */
    @Override
    public Result addRoomByExcel(String url) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

}
